/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package plar.Elements;

/**
 *
 * @author spok
 */

import plar.*;
import plar.Actions.Collision;



public class Player extends Block{
    
    
    public Player(String n)
    {
        
        properties.put("name",n);
        properties.put("gravity", true);
        
        actions.put("input", new plar.Actions.Input(this));
        actions.put("move", new plar.Actions.Move(this));
        actions.put("run", new plar.Actions.Move(this));
        actions.put("jump", new plar.Actions.Move(this));
        actions.put("climb", new plar.Actions.Move(this));
        actions.put("shoot", new plar.Actions.Shoot(this));
        actions.put("shooted", new plar.Actions.Shooted(this));
          getAction("show").setSprites(new Sprites(new Sprite("keen.png")));
          setSize(36,64);
  newAction("collision", new Collision(this,"block"));
        
     }    

}
